//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03B
TN_Widget.CreateTable([['Lone Star Le Mans - 3 Day Pass','Circuit of The Americas','Austin, TX','Friday','8/30/2024','TBD','6215358','Lone-Star-Le-Mans---3-Day-Pass-8-30-2024'],['MotoAmerica Superbikes','Circuit of The Americas','Austin, TX','Friday','9/13/2024','8:00 AM','6275115','MotoAmerica-Superbikes-9-13-2024'],['MotoAmerica Superbikes','Circuit of The Americas','Austin, TX','Saturday','9/14/2024','8:00 AM','6275116','MotoAmerica-Superbikes-9-14-2024'],['MotoAmerica Superbikes','Circuit of The Americas','Austin, TX','Sunday','9/15/2024','8:00 AM','6275117','MotoAmerica-Superbikes-9-15-2024'],['Formula 1: 2024 US Grand Prix - 3 Day Pass','Circuit of The Americas','Austin, TX','Friday','10/18/2024','TBD','5800210','Formula-1--2024-US-Grand-Prix---3-Day-Pass-10-18-2024'],['Formula 1: 2024 US Grand Prix - Friday','Circuit of The Americas','Austin, TX','Friday','10/18/2024','2:00 PM','5800314','Formula-1--2024-US-Grand-Prix---Friday-10-18-2024'],['Formula 1: 2024 US Grand Prix - 2 Day Pass','Circuit of The Americas','Austin, TX','Saturday','10/19/2024','TBD','5800320','Formula-1--2024-US-Grand-Prix---2-Day-Pass-10-19-2024'],['Formula 1: 2024 US Grand Prix - Saturday','Circuit of The Americas','Austin, TX','Saturday','10/19/2024','2:00 PM','5800315','Formula-1--2024-US-Grand-Prix---Saturday-10-19-2024'],['Formula 1: 2024 US Grand Prix - Sunday','Circuit of The Americas','Austin, TX','Sunday','10/20/2024','2:00 PM','5800316','Formula-1--2024-US-Grand-Prix---Sunday-10-20-2024']],'Circuit of the Americas','http://www.ticketnetwork.com/ticket/Circuit-of-the-Americas-events.aspx');